QUERY
priority_check_v1
@mount("gtx_api.priority_check_v1")
query priority_check_v1(tx_body: gtx_transaction_body, tx_size: integer, tx_enter_timestamp: integer, current_timestamp: integer): priority_state_v1This query is used by Postchain. It will be called for every transaction, and the result will be used to determine the transaction priority.
This is not an actual implementation, it simply calls priority_check to allow the
implementation of this query to be defined by the end user.
If the implementation defined in priority_check throws, the transaction will be rejected.
Parameters
- tx_body — the transaction
- tx_size — size of the transaction in bytes
- tx_enter_timestamp — when the transaction entered the queue
- current_timestamp — the current timestamp
See Also
© 2024 Chromia